package com.hitqz.robot.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hitqz.robot.api.business.entity.CvdGuideTaskStepEntity;
import com.hitqz.robot.biz.mapper.CvdGuideTaskStepMapper;
import com.hitqz.robot.biz.service.CvdGuideTaskStepService;
import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;

import java.util.List;
import java.util.Optional;

/**
 * 迎宾讲解任务步骤
 *
 * @author kehanjiang
 * @date 2025-09-30 10:20:59
 */
@Service
@RequiredArgsConstructor
public class CvdGuideTaskStepServiceImpl extends ServiceImpl<CvdGuideTaskStepMapper, CvdGuideTaskStepEntity> implements CvdGuideTaskStepService, SmartInitializingSingleton {

    @Override
    public void afterSingletonsInstantiated() {
        this.update(Wrappers.<CvdGuideTaskStepEntity>lambdaUpdate()
                .set(CvdGuideTaskStepEntity::getStatus, "2"));
    }
}